#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIApplication.h>
#import <UIKit/UIPushButton.h>
#import <UIKit/UIImageAndTextTableCell.h>
#import "MTTetrominosView.h"
#import "MTTetrominosEngine.h"
#import "MTTetrominosPreviewPane.h"

@interface MobileTetrominos : UIApplication 
{
	UIWindow* _window;
	UINavigationBar* _navBar;
	UINavBarButton* _newGameButton;
	UINavBarButton* _pauseButton;
	
	UIView* _mainView;
	UIImageView* _infobarView;
	MTTetrominosView* _TetrominosView;
	MTTetrominosPreviewPane* _previewPane;
	
	CGRect _windowRect;
	CGRect _mainViewRect;
	CGRect _navBarRect;
	CGRect _TetrominosViewRect;
	CGRect _infoBarRect;
	
	UINavBarButton* _leftButton;
	UINavBarButton* _rightButton;
	UINavBarButton* _rotateLeftButton;
	UINavBarButton* _rotateRightButton;
	UINavBarButton* _downButton;
	
	UITextLabel* _linesTitleLabel;
	UITextLabel* _scoreLabel;
	UITextLabel* _levelTitleLabel;
	UITextLabel* _speedLabel;
	UITextLabel* _previewLabel;
	
	UIImageView* _icon;
	
	MTTetrominosEngine* _TetrominosEngine;
	MTTetrominosBoard* _TetrominosBoard;
	NSTimer* _timer;
	
	double _turnTime;
	BOOL _paused;
	NSString* _appLibraryPath;
	NSString* _appSettingsPath;
	NSString* _appSuspendSaveStatePath;
}

-(void) takeTurn;
-(void) setTimers;
-(void) pause;
-(void) resume; 
-(void) pauseButtonPressed;
-(void) rotateLeftButtonPressed;
-(void) rotateRightButtonPressed;
-(void) leftButtonPressed;
-(void) rightButtonPressed;
-(void) newGameButtonPressed;


@end
